<!DOCTYPE html>
<html lang="en">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<style type="text/css">
		body, html{width: 100%;height: 100%;margin:0;font-family:"微软雅黑";}
		#allmap{height:500px;width:100%;}
		#r-result{width:100%; font-size:14px;}
	</style>
    <script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=Y08XHxT1Vm59K7TdzzuaE9PAY1TPjG8K"></script>
    <title>查网点</title>
    <link rel="stylesheet" type="text/css" href="public/dist/css/zui.min.css" />
</head>

<body>
    <div class="panel">
        <div class="panel-heading">
            查网点 当前位置:<span id="cityName"></span><span id="areaName"></span>
        </div>
        <h2>查网点</h2>
        <form class="form-horizontal">
            <div class="panel-body">
                <!-- <div class="form-group">
                    <div class="input-group">
                        <div class="input-control search-box search-box-circle has-icon-left has-icon-right search-example"
                            id="searchboxExample">
                            <input id="inputSearchExample3" type="search" class="form-control search-input"
                                placeholder="可输入详细地址或关键词查找，如：小区名、道路名">
                            <label for="inputSearchExample3" class="input-control-icon-left search-icon"><i
                                    class="icon icon-search"></i></label>
                        </div>
                        <span class="input-group-btn">
                            <button class="btn btn-warning" type="button">查询</button>
                        </span>
                    </div>
                </div> -->

                <div class="form-group">
                    <label for="exampleInputAddress1" class="col-lg-1 col-sm-2 col-xs-3">省</label>
                    <div class="col-lg-2 col-sm-2 col-xs-4">
                        <select class="form-control" onchange="change()" id="addressOne">

                        </select>
                    </div>
                    <label for="exampleInputAddress1" class="col-lg-1 col-sm-2 col-xs-3">市</label>
                    <div class="col-lg-2 col-sm-2 col-xs-4">
                        <select class="form-control" onchange="change2()" id="addressTwo">

                        </select>
                    </div>

                    <label for="exampleInputAddress1" class="col-lg-1 col-sm-2 col-xs-3">区/县</label>
                    <div class="col-lg-2 col-sm-2 col-xs-4">
                        <select class="form-control" onchange="change3()" id="addressThree">

                        </select>
                    </div>

                    <div for="exampleInputAddress1" class="col-lg-3 col-sm-3 col-xs-12">
                        <div class="col-lg-3 col-sm-3 col-xs-4">
                          <button class="btn  btn-block" type="button" onclick="toSend()">查询</button>
                        </div>
                    </div>
                </div>
               
        </form>



    </div>
    </div>

  
     
    <div id="allmap"></div>

    

</body>
<script type="text/javascript" src="public/dist/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="public/dist/js/zui.min.js"></script>
<script type="text/javascript" src="public/layer/layer.js"></script>
<script type="text/javascript" src="public/js/function.js"></script>
<script type="text/javascript" src="public/js/network.js"></script>

</html>
<!-- <script type="text/javascript">
	// 百度地图API功能
	var map = new BMap.Map("allmap");
	map.centerAndZoom(new BMap.Point(116.331398,39.897445),11);
	map.enableScrollWheelZoom(true);
	
	// 用经纬度设置地图中心点
	function theLocation(){
		if(document.getElementById("longitude").value != "" && document.getElementById("latitude").value != ""){
			map.clearOverlays(); 
			var new_point = new BMap.Point(document.getElementById("longitude").value,document.getElementById("latitude").value);
			var marker = new BMap.Marker(new_point);  // 创建标注
			map.addOverlay(marker);              // 将标注添加到地图中
			map.panTo(new_point);      
		}
    }
    	//添加地图类型控件
	map.addControl(new BMap.MapTypeControl({
		mapTypes:[
            BMAP_NORMAL_MAP,
            BMAP_HYBRID_MAP
        ]}));	  
</script> -->




<!-- <script type="text/javascript">
// 百度地图API功能
function G(id) {
		return document.getElementById(id);
	}

	var map = new BMap.Map("l-map");
	map.centerAndZoom("北京",12);                   // 初始化地图,设置城市和地图级别。

	var ac = new BMap.Autocomplete(    //建立一个自动完成的对象
		{"input" : "suggestId"
		,"location" : map
	});

	ac.addEventListener("onhighlight", function(e) {  //鼠标放在下拉列表上的事件
	var str = "";
		var _value = e.fromitem.value;
		var value = "";
		if (e.fromitem.index > -1) {
			value = _value.province +  _value.city +  _value.district +  _value.street +  _value.business;
		}    
		str = "FromItem<br />index = " + e.fromitem.index + "<br />value = " + value;
		
		value = "";
		if (e.toitem.index > -1) {
			_value = e.toitem.value;
			value = _value.province +  _value.city +  _value.district +  _value.street +  _value.business;
		}    
		str += "<br />ToItem<br />index = " + e.toitem.index + "<br />value = " + value;
		G("searchResultPanel").innerHTML = str;
	});

	var myValue;
	ac.addEventListener("onconfirm", function(e) {    //鼠标点击下拉列表后的事件
	var _value = e.item.value;
		myValue = _value.province +  _value.city +  _value.district +  _value.street +  _value.business;
		G("searchResultPanel").innerHTML ="onconfirm<br />index = " + e.item.index + "<br />myValue = " + myValue;
		
		setPlace();
	});

	function setPlace(){
		map.clearOverlays();    //清除地图上所有覆盖物
		function myFun(){
			var pp = local.getResults().getPoi(0).point;    //获取第一个智能搜索的结果
			map.centerAndZoom(pp, 18);
			map.addOverlay(new BMap.Marker(pp));    //添加标注
		}
		var local = new BMap.LocalSearch(map, { //智能搜索
		  onSearchComplete: myFun
		});
		local.search(myValue);
	}
</script> -->